package conponent;

import module.MagicPropType;
import module.Position;
import module.StaticSources;

/**
 * 白板属性词条
 */
public class BlankProp implements MagicProp{
    @Override
    public int getPriority() {
        return 0;
    }

    @Override
    public MagicPropType getMagicProp() {
        return null;
    }

    @Override
    public int getActionPeriod() {
        return 0;
    }

    @Override
    public void effect(MagicBallComp mbc) {
        mbc.setShow(StaticSources.ball);
        EntityComp owner = mbc.getOwner();
        Position p = owner.getPosition();
        mbc.setPosition(p.X+32+16,p.Y);
    }
}
